﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FortuneHeavan.Game.DAL;
using FortuneHeavenCommon.DataMap;

namespace FortuneHeavenBAL
{
    public class GameScoreInfoBO
    {
          public GameScoreInfoDAL _payDAL;
          public GameScoreInfoBO()
              : base()
          {
              _payDAL = new GameScoreInfoDAL();
          }

          public bool AddScore(int value, int userid)
          {
              return _payDAL.AddScore(value, userid);
          }

          public List<GameScoreInfo> GetTopShortInfor(int top)
          {
              return _payDAL.GetTopShortInfor(top);
          }
          public List<GameScoreInfo> GetScoreList(int page, int size, string username, int ordertype)
          {
              if (!string.IsNullOrEmpty(username))
              {
                  username = username.Trim();
              }
              return _payDAL.GetScoreList(page, size, username, ordertype);
          }

        
          public int GetScoreTotalSize(string username, int ordertype)
          {
              if (!string.IsNullOrEmpty(username))
              {
                  username = username.Trim();
              }
              return _payDAL.GetScoreTotalSize(username, ordertype);
          }

          public GameScoreInfo GetGameScore(int userid)
          {
              return _payDAL.GetGameScore(userid);
          }

          public void AddGameScore(GameScoreInfo infor)
          {
              _payDAL.Add(infor);
          }
          public void SaveGameScore(GameScoreInfo infor)
          {
              _payDAL.Save(infor);
          }

          public void SaveCoupon(int UserID, int Coupon)
          {
              _payDAL.SaveCoupon(UserID,Coupon);
          }
    }
}
